import request from '@/utils/request'

// 查询禁烟地图列表
export function listOpiummap(query) {
  return request({
    url: '/opiummap/opiummap/list',
    method: 'get',
    params: query
  })
}

// 查询禁烟地图详细
export function getOpiummap(id) {
  return request({
    url: '/opiummap/opiummap/' + id,
    method: 'get'
  })
}

// 新增禁烟地图
export function addOpiummap(data) {
  return request({
    url: '/opiummap/opiummap',
    method: 'post',
    data: data
  })
}

// 修改禁烟地图
export function updateOpiummap(data) {
  return request({
    url: '/opiummap/opiummap',
    method: 'put',
    data: data
  })
}

// 删除禁烟地图
export function delOpiummap(id) {
  return request({
    url: '/opiummap/opiummap/' + id,
    method: 'delete'
  })
}

// 导出禁烟地图
export function exportOpiummap(query) {
  return request({
    url: '/opiummap/opiummap/export',
    method: 'get',
    params: query
  })
}